﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.NeighborUI {
    import flash.events.*;
    import flash.utils.*;
    import Display.DialogUI.*;
    import Classes.*;

    public class FriendHelpDialog extends GenericDialog {

        private var m_friend:Player;
        private var m_acceptText:String;

        public function FriendHelpDialog(_arg1:Player, _arg2:String, _arg3:String, _arg4:String="IdleGoHelpOutNow_button", _arg5:Function=null, _arg6:Boolean=true){
            this.m_friend = _arg1;
            super(_arg2, _arg3, 0, _arg5, _arg3);
            m_message = _arg2;
            m_title = _arg3;
            this.m_acceptText = _arg4;
        }
        override protected function loadAssets():void{
            Global.delayedAssets.get("assets/dialogs/NeighborVisitAssets.swf", makeAssets);
        }
        override protected function onAssetsLoaded(_arg1:Event=null):void{
            var _local2:Dictionary = new Dictionary();
            _local2["closeBtnDown"] = m_comObject.closeBtnDown;
            _local2["closeBtnOver"] = m_comObject.closeBtnOver;
            _local2["closeBtnUp"] = m_comObject.closeBtnUp;
            _local2["dialogBG"] = m_comObject.dialogBG;
            _local2["friend"] = this.m_friend;
            if (this.m_acceptText == null){
                this.m_acceptText = "IdleGoHelpOutNow_button";
            };
            m_jpanel = new FriendHelpDialogView(_local2, m_message, m_title, m_type, this.m_acceptText, m_callback);
            finalizeAndShow();
        }
        override protected function createAssetDict():Dictionary{
            var _local1:Dictionary = new Dictionary();
            _local1["closeBtnDown"] = m_comObject.closeBtnDown;
            _local1["closeBtnOver"] = m_comObject.closeBtnOver;
            _local1["closeBtnUp"] = m_comObject.closeBtnUp;
            _local1["dialogBG"] = m_comObject.dialogBG;
            _local1["friend"] = this.m_friend;
            return (_local1);
        }
        override protected function createDialogView(_arg1:Dictionary):GenericDialogView{
            var _local2:FriendHelpDialogView = new FriendHelpDialogView(_arg1, m_message, m_title, m_type, this.m_acceptText, m_callback);
            return (_local2);
        }

    }
}//package Display.NeighborUI 
